/*------------------------------------*\
    #PATTERN LAB STYLES
\*------------------------------------*/

/**
* NOTES:
* 1) These styles are specific to Pattern Lab and should not be modified.
* All project styles should be modified in /source/css/
*
* 2) Any !important declarations are to prevent brand styles from overriding
* pattern lab-specific styles
*/

/*------------------------------------*\
    #TABLE OF CONTENTS
\*------------------------------------*/
/**
 * ABSTRACTS.................Variables and mixins
 * BASE......................Reset & Base elements
 * VENDOR....................Styles out of PL control
 * COMPONENTS................Components
 * THEMES....................Theming variations
 * UTILITIES.................Helper classes
 */

/*------------------------------------*\
    #ABSTRACTS
\*------------------------------------*/
@import 'scss/01-abstracts/variables';
@import 'scss/01-abstracts/mixins';

/*------------------------------------*\
    #BASE
\*------------------------------------*/
@import 'scss/02-base/reset';
@import 'scss/02-base/body';

/*------------------------------------*\
    #VENDOR
\*------------------------------------*/
@import 'scss/03-vendor/prism';

/*------------------------------------*\
    #COMPONENTS
\*------------------------------------*/
@import '../scripts/components/pl-nav/index.scss';
@import '../scripts/components/pl-search/pl-search.scss';
@import 'scss/04-components/annotations';
@import 'scss/04-components/annotations-inside-modal';
@import 'scss/04-components/breadcrumbs';
@import 'scss/04-components/pattern-category';
@import 'scss/04-components/pattern-info';
@import 'scss/04-components/pattern-lineage';
@import 'scss/04-components/pattern-states';
@import 'scss/04-components/pattern';
@import 'scss/04-components/tabs';
@import 'scss/04-components/text-passage';

.pl-c-code-copy-btn {
  display: inline-block;
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  padding: 0.2rem 0.4rem;
  background-color: $pl-color-gray-07;
  color: $pl-color-gray-87;
  border: 1px solid $pl-color-gray-13;
  border-radius: $pl-border-radius-med;
  font-family: $pl-font;
  font-size: $pl-font-size-norm;
  text-transform: lowercase;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background-color $pl-animate-quick ease-out;

  &:hover,
  &:focus {
    background-color: $pl-color-gray-20;
  }
}

.pl-c-code-copy-btn__icon {
  height: 1em;
  width: 1em;
}

.pl-c-code-copy-btn__icon--paste {
  display: none;

  .is-copied & {
    display: inline-block;
  }
}

.pl-c-code-copy-btn__icon--copy {
  display: inline-block;

  .is-copied & {
    display: none;
  }
}

.pl-c-body {
  overflow: hidden;
}

.pl-c-main {
  // Preventing cropping pattern parts #1174 - absolutely positioned pattern parts at the vertical end of the "page" would get cropped elsewhere
  min-height: 100vh;

  max-width: 100vw;
  padding-left: 0.5rem;
  padding-right: 0.5rem;

  // Clearing all remaining floats
  &::after {
    clear: both;
    content: '';
    display: table;
  }
}

/*------------------------------------*\
    #THEMES
\*------------------------------------*/
@import 'scss/05-themes/light-theme';
@import 'scss/05-themes/density-theme';
@import 'scss/05-themes/sidebar-theme';

/*------------------------------------*\
    #UTILITIES
\*------------------------------------*/
@import 'scss/06-utilities/visibility';
